#include <iostream>

#include "../menu/generated.h"

using namespace std;
using namespace uhdpbs::db;
using namespace uhdpbs::generated;
using namespace uhdpbs::menu;

int main(int argc, char** argv[])
{
	string sUser = "uhdpbs";
	string sPassword = "password1234";

	connection dbConn = connection();
	if(!dbConn.open("localhost", "uhdpbs_db", sUser, sPassword)) {
		cout << "Could not open database connection!";
		return -1;
	}

	patient_table tblPatients = patient_table(&dbConn);
	tblPatients.load("last_name");
	generated::patient_list(&tblPatients);

	return 0;
}
